package com.dianping.cat.home.dependency.format.transform;

import com.dianping.cat.home.dependency.format.entity.Domain;
import com.dianping.cat.home.dependency.format.entity.ProductLine;
import com.dianping.cat.home.dependency.format.entity.TopoGraphFormatConfig;
import java.util.ArrayList;
import java.util.List;

public class DefaultLinker implements ILinker {
  private boolean m_deferrable;

  public DefaultLinker(boolean deferrable) {
/* 13 */     this.m_deferedJobs = new ArrayList();


/* 16 */     this.m_deferrable = deferrable;
  }
  private List<Runnable> m_deferedJobs;
  public void finish() {
/* 20 */     for (Runnable job : this.m_deferedJobs) {
/* 21 */       job.run();
    }
  }


  public boolean onDomain(ProductLine parent, Domain domain) {
/* 27 */     parent.addDomain(domain);
/* 28 */     return true;
  }


  public boolean onProductLine(TopoGraphFormatConfig parent, ProductLine productLine) {
/* 33 */     parent.addProductLine(productLine);
/* 34 */     return true;
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/classes/!/com/dianping/cat/home/dependency/format/transform/DefaultLinker.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */